package Edchl7;

import com.orion.symphonia3.MessageElement;
import com.orion.symphonia3.MessageComponent;

public class EDC_HL7FldXPN extends MessageComponent{
	
	//Declarations

	public EDC_HL7FldCM_FN FamilyName;
	public EDC_HL7FldST GivenName;
	public EDC_HL7FldST MiddleInitialOrName;
	public EDC_HL7FldST Suffix;
	public EDC_HL7FldST Prefix;
	public EDC_HL7FldST Degree;
	public EDC_HL7FldST NameTypeCode;
	public EDC_HL7FldST NameRepresentationCode;

	//Constructor
	public EDC_HL7FldXPN(MessageElement elem) {
		super(elem);
		FamilyName = new EDC_HL7FldCM_FN(elem.getElementAt("FamilyName"));
		GivenName = new EDC_HL7FldST(elem.getElementAt("GivenName"));
		MiddleInitialOrName = new EDC_HL7FldST(elem.getElementAt("MiddleInitialOrName"));
		Suffix = new EDC_HL7FldST(elem.getElementAt("Suffix"));
		Prefix = new EDC_HL7FldST(elem.getElementAt("Prefix"));
		Degree = new EDC_HL7FldST(elem.getElementAt("Degree"));
		NameTypeCode = new EDC_HL7FldST(elem.getElementAt("NameTypeCode"));
		NameRepresentationCode = new EDC_HL7FldST(elem.getElementAt("NameRepresentationCode"));
	}

}
